package com.twu.biblioteca;


import java.util.ArrayList;
import java.util.HashMap;

class User
{
    String username;
    String password;
    ArrayList<Integer> booksReserved;
    HashMap userMembershipDetails;
    Boolean loginFlag;

    User()
    {
        this.userMembershipDetails = new HashMap(3);
        this.loginFlag = false;
        this.booksReserved = new ArrayList(4);
    }

    boolean isBookAlreadyReserved(int bookNumber)
    {
        if(booksReserved.isEmpty() || booksReserved.contains(bookNumber))
            return false;
        else
            return true;
    }
}
